<template>
	<view class="content">
		<view class="pageHeader">
			用户协议
			<a class="generalBack" @click="backpage()" hover-class="none">
			 <image src="/static/b-1.png" style="width: 18upx;height: 30upx;"></image>
			 </a>
		</view>
		<view v-html="userxieyi" style="color: #666;font-size: 28upx;padding: 20upx 30upx; ">
			
		</view>
	</view>
	</template>
	<script>
	import postAjax from '../../API/postAjax.js'
	export default {
		data() {
			return {
				userxieyi:''
			}
		},
		onLoad(options) {
			this.get_xieyi()
		},
		methods: {
			// 返回上一页
			backpage(){
				uni.navigateBack({
					delta:1
				})
			},
			get_xieyi(){
				let that = this
				postAjax('index/Agreement',{},function(data){
					if(data.code==0){
						that.userxieyi = data.data.value	
						console.log(that.userxieyi)
					}else{
						that.userxieyi=''
					}
				})
			}
		}
	}
	
</script>

<style>
	.content{background-color: #fff;}
	.pageHeader{width: 100%;height: 128upx;background-color: #1D84E8;line-height: 128upx;text-align: center;font-size: 36upx;color: #fff;padding-top: 40upx;}
	.generalBack{position: absolute;top:40upx;left:30upx;display: block;}
	.regoodbox{padding: 170upx 0upx 22upx;}
	.flex-1{flex:1;}
	.eliplis{overflow: hidden;white-space: nowrap;text-overflow: ellipsis}
	.topactive{color: #1D84E8;position: relative;}
	.topactive::after{content: '';position: absolute;width: 100%;height: 4upx;background-color: #1D84E8;bottom: 0;left: 0;}
	.leftsqure{width: 18upx;height: 18upx;}
	.squre-1{background-color: #DF7A4C;}
	.squre-2{background-color: #E5B549;}
	.squre-3{background-color: #2E6DB7;}
	.filebox{
		padding:24upx 30upx;font-size: 28upx;color: #666;background-color: #fff;margin-bottom: 10upx;
	}
</style>
